home *** CD-ROM | disk | FTP | other *** search
Wrap
ASP.NET Web Form | 2008-02-23 | 20.5 KB | 287 lines
<%@ Page language="c#" Inherits="gbweb.Admin2" CodeFile="Admin2.aspx.cs" culture="auto" uiculture="auto" %> <%@ Register TagPrefix="gbpvr" TagName="Header" Src="Header2.ascx" %> <%@ Register TagPrefix="gbpvr" TagName="Footer" Src="Footer2.ascx" %> <!DOCTYPE html PUBLIC ô-//W3C//DTD XHTML 1.1 Strict//ENö ôhttp://www.w3.org/TR/xhtml1/DTD/xhtml11-strict.dtdö> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>GBPVR - Config</title> <link rel="shortcut icon" type="image/gif" href="<%=Convert.ToString(Session["theme"])%>/graphics/favicon.gif"/> <link rel="stylesheet" type="text/css" href="<%=Convert.ToString(Session["theme"])%>/css/common.css"/> <link rel="stylesheet" type="text/css" href="<%=Convert.ToString(Session["theme"])%>/css/admin.css"/> <script type="text/javascript" src="public/popup.js"></script> <script type="text/javascript" src="public/scrolling.js"></script> <script type="text/javascript" src="public/Ajax2.js"></script> <script type="text/javascript" src="<%=Convert.ToString(Session["theme"])%>/js/common.js"></script> <script type="text/javascript" src="<%=Convert.ToString(Session["theme"])%>/js/admin.js"></script> <script type="text/javascript"> function reload() { document.form1.submit(); } </script> </head> <body onload="GetServerTime(),GetReminders(), fScrollMove('CONTENTS'), StartUp()"> <gbpvr:Header id="headerTheme" runat="server"/> <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="True"> <Services> <asp:ServiceReference Path="~/AjaxService2.asmx" /> </Services> </asp:ScriptManager> <form id="form1" method="post" runat="server"> <input runat="server" type="hidden" id="hdnScrollState" /> <div id="FIXED_DIV"> </div> <!-- Header Start --> <div id="HEADER"> <div id="LOGO_HEADER"></div> <div id="HEADER_TEXT"> <span class="textLarge">GB-PVR</span><br/> <span class="textSmall">Enhanced Web Admin</span><br/> </div> <div id="DATE_TIME"> <div class="viewingDate" id="viewDate" runat="server"></div> <div class="timeDiv" id="serverTime" runat="server"></div> </div> <!-- Nav Row Start--> <div id="NAV_ROW"> <div id="NAV_GUIDE" title="TV Guide" runat="server"><a href="Guide2.aspx">TV Guide</a></div> <div id="NAV_RECORDINGS" title="Manage Recordings" runat="server" ><a href="Manage2.aspx">Manage Recordings</a></div> <div id="NAV_SEARCH" title="Programme Search" runat="server" ><a href="Search2.aspx">Episode Search</a></div> <div id="NAV_VIDEO" title="Video Library" runat="server" ><a href="Library2.aspx?path=Video">Video Library</a></div> <div id="NAV_MUSIC" title="Music Library" runat="server" ><a href="Library2.aspx?path=Music">Music Library</a></div> <div id="NAV_PHOTO" title="Photo Library" runat="server"><a href="Library2.aspx?path=Photo">Photo Library</a></div> <div id="NAV_LOGOUT" title="Logout" runat="server"><a href="Logout2.aspx">Logout</a></div> <div id="NAV_CONFIG" title="Configuration" runat="server" ><a href="Admin2.aspx">Config</a></div> <div id="NAV_STATS" title="Statistics" runat="server" ><a href="info2.aspx">Statistics</a></div> </div> <!-- Nav Row End--> </div> <!-- Header End --> <!-- Dateline Start --> <div id="DIV_DATELINE"> </div> <div id="DATELINE" runat="server"> <div id="reminderArea" runat="server"> <div id="REMINDER_LABEL" runat="server"><a id="reminderLink"><div id="remDiv" runat="server"></div></a></div> <div id="REMINDER_DIV" runat="server"> </div> </div> </div> <!-- Dateline End --> <!-- dividing line or graphic here --> <div id="DIV_HEADER"> </div> <!-- EWA Configuration Line Start --> <div id="ADMIN_HEADER" runat="server"> <div id="adminLabel" class="adminLabel" runat="server">EWA Configuration</div> <div id="forcedScrollbar" runat="server"> </div> </div> <div id="buttonArea" class="buttonArea" runat="server"> <span class="butSubmit" id="butSubmit" runat="server"><asp:LinkButton id="hlSubmitT" runat="server" onclick="hlSubmit_Click">Submit</asp:LinkButton></span> <span class="butReset" id="butReset" runat="server"><asp:HyperLink NavigateUrl="#" id="HyperLink1" runat="server" OnClick="document.Form1.reset();return false;">Reset</asp:HyperLink></span> <asp:Label CssClass="errorMsg" id="lblAutologinWarning" runat="server"></asp:Label> </div> <div id="DIV_CONTENTS" runat="server"></div> <div id="CONTENTS" runat="server"> <!-- EWA General Settings --> <div id="EWAConfigFrame" class="EWAConfigFrame" runat="server"></div> <div id="EWAConfigHeading" class="EWAConfigHeading" runat="server">-- EWA Configuration Setttings --</div> <div id="EWATabsLabel" class="EWATabsLabel" runat="server">Standard EWA Tabs to Display:</div> <div id="EWATabs" class="EWATabs" runat="server"> <asp:CheckBoxList ID="displayTabs" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow" Width="655px"> <asp:ListItem Value="guide">TV Guide</asp:ListItem> <asp:ListItem Value="manage">Manage Recordings</asp:ListItem> <asp:ListItem Value="search">Episode Search</asp:ListItem> <asp:ListItem Value="vlibrary">Video Library</asp:ListItem> <asp:ListItem Value="mlibrary">Music Library</asp:ListItem> <asp:ListItem Value="plibrary">Photo Library</asp:ListItem> <asp:ListItem Value="stats">Statistics</asp:ListItem> </asp:CheckBoxList> </div> <div id="autoLoginLabel" class="autoLoginLabel" runat="server">Automatic Login Range:</div> <div id="autoLogin" class="autoLogin" runat="server"> <asp:TextBox id="txtAutologinList" runat="server" Columns="60">127.0.0.0/8,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16,169.254.0.0/16</asp:TextBox> </div> <div id="autoLoginButtons" class="autoLoginButtons" runat="server"> <span class="butInternal" id="butInternal" runat="server"><asp:LinkButton id="hlAutologinInternal" runat="server" onclick="hlAutologinInternal_Click">Internal</asp:LinkButton></span> <span class="butNone" id="butNone" runat="server"><asp:LinkButton id="hlAutologinNone" runat="server" CssClass="btn-normal-small" onclick="hlAutologinNone_Click">None</asp:LinkButton></span> <span>(<a href="http://en.wikipedia.org/wiki/IPv4_subnetting_reference" target="_blank">help</a>)</span> </div> <div id="guestLabel" class="guestLabel" runat="server">Guest User Information:</div> <div id="guestIdLabel" class="guestIdLabel" runat="server">Id:</div> <input id="guestUser" class="guestUser" type="text" runat="server"/> <div id="guestPasswordLabel" class="guestPasswordLabel" runat="server">Password:</div> <input id="guestPassword" class="guestPassword" type="password" runat="server"/> <div id="extensionLabel" class="extensionLabel" runat="server">Playlist Extension:</div> <div class="playlistExtension"> <input id="playlistExtension" type="text" size="5" value="m3u" name="txtTimelineRepeat" runat="server"/>(used for webadmin playback) </div> <div id="recordingQualityLabel" class="recordingQualityLabel" runat="server">Default Recording Quality:</div> <div class="recordingQuality"> <asp:DropDownList id="dropdownRecordingQuality" runat="server"> <asp:ListItem Value="High">High</asp:ListItem> <asp:ListItem Value="Medium" Selected="True">Medium</asp:ListItem> <asp:ListItem Value="Low">Low</asp:ListItem> <asp:ListItem Value="Custom1">Custom1</asp:ListItem> <asp:ListItem Value="Custom2">Custom2</asp:ListItem> </asp:DropDownList> </div> <div id="themeLabel" class="themeLabel" runat="server">Theme:</div> <div class="theme"> <asp:DropDownList id="dropdownThemes" runat="server"></asp:DropDownList> </div> <!-- EPG Settings --> <div id="EPGFrame" class="EPGFrame" runat="server"></div> <div id="EPGHeading" class="EPGHeading" runat="server">-- Guide Settings --</div> <div id="minuteSpanLabel" class="minuteSpanLabel" runat="server">Minute Span:</div> <div class="minuteSpan"> <input type="text" name="txtMinuteSpan" size="5" id="txtMinuteSpan" runat="server"/>(how many minutes to show at once in the guide) </div> <div id="minueIntervalLabel" class="minuteIntervalLabel" runat="server">Minute Interval:</div> <div class="minuteInterval"> <input type="text" name="txtMinuteInterval" size="5" id="txtMinuteInterval" runat="server"/>(number of minutes per division in the timeline) </div> <div id="minuteSliceLabel" class="minuteSliceLabel" runat="server">Minute Slice:</div> <div class="minuteSlice"> <input type="text" name="txtMinuteSlice" size="5" id="txtMinuteSlice" runat="server"/>(accuracy of program layout) </div> <div id="timelineRepeatLabel" class="timelineRepeateLabel" runat="server">Timeline Repeat:</div> <div class="timelineRepeate"> <input type="text" name="txtTimelineRepeat" size="5" id="txtTimelineRepeat" runat="server"/> </div> <div id="defaultStartLabel" class="defaultStartLabel" runat="server">Default Guide Start Time:</div> <div class="defaultStart"> <asp:TextBox ID="guideStartTime" runat="server" CausesValidation="True" Width="57px"></asp:TextBox>(blank for current time. valid = 00:00-23:59) <asp:RegularExpressionValidator ID="validateGuideStartTime" runat="server" ControlToValidate="guideStartTime" ErrorMessage="Invalid" Font-Bold="True" ValidationExpression="^([0-1][0-9]|[2][0-3]):([0-5][0-9])$" Width="54px"></asp:RegularExpressionValidator> </div> <div id="reminderNotificationLabel" class="reminderNotificationLabel" runat="server">Reminder Notification:</div> <div class="reminderNotification"> <input type="text" id="txtReminderDays" runat="server" maxlength="2" style="width: 28px"/> <input type="text" id="txtReminderHours" runat="server" maxlength="2" style="width: 28px"/> <input type="text" id="txtReminderMinutes" runat="server" maxlength="2" style="width: 28px"/>(Days/hours/minutes prior to show start for reminder to display) </div> <div id="killRemindersLabel" class="killRemindersLabel" runat="server">Kill All Set Reminders:</div> <div class="killRemindersButton"> <span class="butKillReminders"><asp:LinkButton ID="KillAllReminders" runat="server" OnClick="Kill_All_Reminders_Click" ToolTip="Click this button to delete all reminders currently set.">Kill Reminders</asp:LinkButton></span> </div> <div id="autoSearchLabel" class="autoSearchLabel" runat="server">Enable Auto-Search:</div> <div class="autoSearch"> <asp:RadioButtonList id="autoShowSearch" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow" OnSelectedIndexChanged="hlSubmit_Click" Width="75px" ToolTip="Select Yes if you would like EWA to perform a daily auto-search using your saved searches that you have flagged to be included in the auto-search. Selecting No disables the auto-search functionality."> <asp:ListItem Value="True">Yes</asp:ListItem> <asp:ListItem Selected="True" Value="False">No</asp:ListItem> </asp:RadioButtonList> (Set Reminders) </div> <div id="autoRecordLabel" class="autoRecordLabel" runat="server">Enable Auto-Record:</div> <div class="autoRecord"> <asp:RadioButtonList id="autoRecordSearch" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow" OnSelectedIndexChanged="hlSubmit_Click" Width="75px" ToolTip="Select Yes if you would like EWA to perform a daily auto-search using your saved searches that you have flagged to be included in the auto-search. Selecting No disables the auto-search functionality."> <asp:ListItem Value="True">Yes</asp:ListItem> <asp:ListItem Selected="True" Value="False">No</asp:ListItem> </asp:RadioButtonList> (Record Programmes) </div> <div id="searchDaysLabel" class="searchDaysLabel" runat="server">Auto-Search EPG Days:</div> <div class="searchDays"> <input id="autoSearchEPGDays" type="text" name="autoSearchEPGDays" runat="server" style="width: 40px" title="Number of days in EPG that Auto-Search should search."/> </div> <div class="searchButton"> <span class="butAutoSearch"><asp:LinkButton ID="forceAutoSearch" runat="server" OnClick="forceSearch_Click" ToolTip="Click this button for auto-search to occur immediatly.">Search Now</asp:LinkButton></span> </div> <div id="programmeItemsLabel" class="programmeItemsLabel" runat="server">Programme Items to Display:</div> <div class="programmeItems"> <asp:CheckBox id="showSubtitle" runat="server"></asp:CheckBox>Subtitle <asp:CheckBox id="showIMDB" runat="server"></asp:CheckBox>IMDB Link <asp:CheckBox id="showNetflix" runat="server"></asp:CheckBox>Netflix Link <asp:CheckBox id="showWiki" runat="server"></asp:CheckBox>Wikipedia Link <asp:CheckBox ID="showTVCom" runat="server"></asp:CheckBox>TV.Com Link <asp:CheckBox id="showDescription" runat="server"></asp:CheckBox>Description <asp:CheckBox id="showRating" runat="server"></asp:CheckBox>Rating <br /> <asp:RadioButtonList id="UseChannelIcons" runat="server" CssClass="listing" RepeatDirection="Horizontal" RepeatLayout="Flow"> <asp:ListItem Value="chnlText">Channel Text</asp:ListItem> <asp:ListItem Value="chnlIcon">Channel Icons</asp:ListItem> <asp:ListItem Value="chnlBoth">Channel Text and Icons</asp:ListItem> </asp:RadioButtonList> <br /> <asp:RadioButtonList id="showGenre" runat="server" CssClass="listing" RepeatDirection="Horizontal" RepeatLayout="Flow" Width="442px"> <asp:ListItem Value="noGenre">Show No Genres</asp:ListItem> <asp:ListItem Value="singleGenre">Show Single Best Genre</asp:ListItem> <asp:ListItem Value="allGenre">Show All Genres</asp:ListItem> </asp:RadioButtonList> <br /> <span id="spanExtendedEWA" runat="server"> <asp:CheckBox id="showNew" runat="server" Text="Show New"></asp:CheckBox> <asp:CheckBox id="showCredits" runat="server" Text="Show Credits"></asp:CheckBox> <asp:CheckBox id="showAirDate" runat="server" Text="Show Air/Release Date"></asp:CheckBox> <asp:CheckBox id="showStarRating" runat="server" Text="Show Star Rating"></asp:CheckBox> <asp:CheckBox id="showHD" runat="server" Text="Show HD"></asp:CheckBox> </span> </div> <div id="iconSizeLabel" class="iconSizeLabel" runat="server">Channel Icon Size:</div> <div class="iconSize"> <input type="text" name="txtChnlIconW" size="4" id="txtChnlIconW" runat="server" maxlength="3"/> x <input type="text" name="txtChnlIconH" size="4" id="txtChnlIconH" runat="server" maxlength="3"/> </div> <div class="defaultButton"> <span class="butDefaultIcon"><asp:LinkButton id="sizeDefault" runat="server" CssClass="btn-normal-small" onclick="sizeDefault_Click">Default</asp:LinkButton></span> </div> <!-- Streamer Settings --> <div id="streamerFrame" class="streamerFrame" runat="server"></div> <div id="streamerHeading" class="streamerHeading" runat="server">-- Streamer Configuration Settings --</div> <div id="VLCLocationLabelV" class="VLCLocationLabelV" runat="server">VLC Location (Video):</div> <div class="VLCLocationV"> <asp:TextBox ID="strmVLCLoc" runat="server" Width="409px">C:\Program Files\VideoLAN\Vlc\</asp:TextBox> </div> <div id="VLCPlayerLabelV" class="VLCPlayerLabelV" runat="server">Stream Player (Video):</div> <div class="VLCPlayerV"> <asp:DropDownList ID="streamPlayer" runat="server"> <asp:ListItem Selected="True" Value="vlc">VLC</asp:ListItem> <asp:ListItem Value="wmp">WMP</asp:ListItem> </asp:DropDownList> <asp:CheckBox ID="externalPlayer" runat="server" /> Open Stream in External Player </div> <div id="VLCLocationLabelA" class="VLCLocationLabelA" runat="server">VLC Location (Audio):</div> <div class="VLCLocationA"> <asp:TextBox ID="strmVLCLoc2" runat="server" Width="409px">C:\Program Files\VideoLAN\Vlc\</asp:TextBox> </div> <div id="VLCPlayerA" class="VLCPlayerLabelA" runat="server">Stream Player (Audio):</div> <div class="VLCPlayerA"> <asp:DropDownList ID="streamPlayer2" runat="server"> <asp:ListItem Selected="True" Value="vlc">VLC</asp:ListItem> <asp:ListItem Value="wmp">WMP</asp:ListItem> </asp:DropDownList> <asp:CheckBox ID="externalPlayer2" runat="server" /> Open Stream in External Player </div> </div> <!-- Footer Start --> <div id="DIV_FOOTER" runat="server"> </div> <div id="FOOTER" runat="server"> <div id="FOOTER_RIGHT" runat="server"> <gbpvr:Footer id="footer1" runat="server"/> </div> </div> <!-- Footer End --> </form> </body> </html>